package org.jeecg.modules.goods.goodssku.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 产品sku信息
 * @Author: jeecg-boot
 * @Date:   2025-06-07
 * @Version: V1.0
 */
@Data
@TableName("cg_goods_sku")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description="产品sku信息")
public class GoodsSku {
    
	/**主键id*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键id")
	private String id;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @Schema(description = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @Schema(description = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
	private Date updateTime;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @Schema(description = "租户ID")
	private Integer tenantId;
	/**产品id*/
	@Excel(name = "产品id", width = 15)
    @Schema(description = "产品id")
	private String goodsId;
	/**产品名称*/
	@Excel(name = "产品名称", width = 15)
    @Schema(description = "产品名称")
	private String goodsName;
	/**产品skuid*/
	@Excel(name = "产品skuid", width = 15)
    @Schema(description = "产品skuid")
	private String skuCode;
	/**sku图片集*/
	@Excel(name = "sku图片集", width = 15)
    @Schema(description = "sku图片集")
	private String skuPics;
	/**sku封面图*/
	@Excel(name = "sku封面图", width = 15)
    @Schema(description = "sku封面图")
	private String coverPic;
	/**型号*/
	@Excel(name = "型号", width = 15)
    @Schema(description = "型号")
	private String skuModel;
	/**尺寸*/
	@Excel(name = "尺寸", width = 15)
    @Schema(description = "尺寸")
	private String skuSize;
	/**颜色*/
	@Excel(name = "颜色", width = 15)
    @Schema(description = "颜色")
	private String skuColor;
	/**质量*/
	@Excel(name = "质量", width = 15)
    @Schema(description = "质量")
	private String skuQuality;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @Schema(description = "数量")
	private Integer skuQuatity;
	/**内存*/
	@Excel(name = "内存", width = 15)
    @Schema(description = "内存")
	private Integer skuCapcity;
	/**版本*/
	@Excel(name = "版本", width = 15)
    @Schema(description = "版本")
	private String skuVersion;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @Schema(description = "类型")
	private String skuStyle;
	/**梯度单价, json格式：类似 [{from: 1, to: 10, price:200}, {from: 11, to: 20, price:180}]*/
	@Excel(name = "梯度单价, json格式：类似 [{from: 1, to: 10, price:200}, {from: 11, to: 20, price:180}]", width = 15)
    @Schema(description = "梯度单价, json格式：类似 [{from: 1, to: 10, price:200}, {from: 11, to: 20, price:180}]")
	private String stepPrices;
	/**规格信息json*/
	@Excel(name = "规格信息json", width = 15)
    @Schema(description = "规格信息json")
	private Object specs;
	/**产品状态*/
	@Excel(name = "产品状态", width = 15)
    @Schema(description = "产品状态")
	private String skuStatus;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @Schema(description = "备注")
	private String remark;
}
